import { ComponentRef } from '../..';
import { ModalProps } from '../../props';

/**
 * 顶级模态打开必传参数
 *
 * @author chitanda
 * @date 2021-04-05 10:04:47
 * @export
 * @interface ModalOptions
 */
export interface ModalOptions {
  /**
   * 模态显示层级
   *
   * @author chitanda
   * @date 2021-06-01 11:06:53
   * @type {number}
   */
  overlayIndex: number;
  /**
   * 是否启用按键关闭
   *
   * @author chitanda
   * @date 2021-06-01 11:06:25
   * @type {boolean}
   */
  keyboardClose?: boolean;
  /**
   * 需要展示的组件
   *
   * @author chitanda
   * @date 2021-04-05 10:04:04
   * @type {ComponentRef}
   */
  component?: ComponentRef;
  /**
   * 输入参数
   *
   * @author chitanda
   * @date 2021-04-05 10:04:54
   * @type {Record<string, unknown>}
   */
  componentProps?: ModalProps;
}
